package com.geekaca.oop.work1;

public class Student {
    public String name;
    public String banji;

    public Student(String name, String banji) {
        this.name = name;
        this.banji = banji;
    }

    public void answerPaper(Paper paper, double answer) {
        paper.score = answer;
        System.out.println(this.banji + "班" + "学生" + this.name + "考了" + paper.name);
    }

}
